class ChangeRoles < ActiveRecord::Migration
  def self.up
    add_column :roles ,:authorizable_type, :string
    add_column :roles ,:authorizable_id, :integer

    remove_column :roles, :level
  end

  def self.down
    remove_column :roles, :authorizable_type
    remove_column :roles, :authorizable_id
  end
end
